<?php
/**
 * User: hjd-yao
 * Date: 2019/6/20
 * Time: 10:26
 */

namespace Shop\Http\Controllers\Wap;


use Shop\Http\Controllers\BaseController;
use Yansongda\Pay\Pay;

class PayController extends BaseController
{
    public function alipay()
    {
        $config_biz = [
            'out_trade_no' => time(),
            'total_amount' => '1',
            'subject'      => 'test subject',
        ];
        $pay = new Pay(config('pay'));
        return $pay->driver('alipay')->gateway('wap')->pay($config_biz);
    }
}